﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AGVCallSystem
{
    public class CallDeviceDbContext : DbContext
    {
        public CallDeviceDbContext() : base("name=conStr")
        {
            //do nothing
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }

        public DbSet<CallDeviceEntity> callDeviceEntities { get; set; }
    }
}
